import Layout from '@/views/layout/Layout'

const route = {
  path: '/aindex',
  redirect: '/aindex/commonList',
  component: Layout,
  alwaysShow: false,
  meta: {
    title: '指标管理',
    icon: 'nested'
  },
  children: [
    {
      path: 'commonIndexList',
      component: () => import('@/views/commonIndex/list'),
      name: 'CommonIndexList',
      hidden: false,
      meta: { title: '共性指标' }
    },
    {
      path: 'commonIndexAdd',
      component: () => import('@/views/commonIndex/add'),
      name: 'CommonIndexAdd',
      hidden: true,
      meta: { title: '添加共性指标' }
    },
    {
      path: 'commonIndexEdit/:id',
      component: () => import('@/views/commonIndex/edit'),
      name: 'CommonIndexEdit',
      hidden: true,
      props: true,
      meta: { title: '修改共性指标' }
    },
    {
      path: 'positionIndexList/:positionId',
      component: () => import('@/views/positionIndex/list'),
      name: 'PositionIndexList',
      props: true,
      hidden: true,
      meta: { title: '岗位指标' }
    },
    {
      path: 'positionIndexAdd/:positionId',
      component: () => import('@/views/positionIndex/add'),
      name: 'PositionIndexAdd',
      props: true,
      hidden: true,
      meta: { title: '添加岗位指标' }
    },
    {
      path: 'positionIndexEdit/:positionId/:id',
      component: () => import('@/views/positionIndex/edit'),
      name: 'PositionIndexEdit',
      hidden: true,
      props: true,
      meta: { title: '修改岗位指标' }
    }
  ]
}

export default route
